<?php
namespace app\user\controller;

use think\Db;

class Index extends Mycontroller
{
    public function index()
    {
        $data=Db::name('goods')->field(true)->where('hot',1)->select();
//        var_dump($data);
        return view('user/index',['data'=>$data]);
    }

}
